#! /usr/bin/python


def GetUniqueWords(text):
  alice_list = text.split()
  alice_list.sort()
  d = 0
  e = 0
  f = {0:0}
  first = 0
  second = 0
  third = 0
  fourth = 0
  fifth = 0
  sixth = 0
  seventh = 0
  eighth = 0
  ninth = 0
  tenth = 0
  def print_top_ten(numb, word, stored):
    word_list = []
    word_list.append(str(numb) + ": " + str(word) + ", " + str(stored))
    print word_list[0]
  while d <= len(alice_list):
    a = alice_list[d]
    b = alice_list.count(a)
    for c in range(b):
      alice_list.remove(a)
    d += 1
    e += 1
    f[a] = b
      
  print "Unique words: " + str(e)
  print "Most commonly occuring words: " 
  #print_top_ten(1, word, first)

def top_ten_words(alice_list)
  top_ten = []
  
  

def main():
  # Open the file, read it into memory as a single string.
  with open('alice_in_wonderland.txt') as alice_file:
    alice_text = alice_file.read().lower().strip()
    GetUniqueWords(alice_text)


if __name__ == '__main__':
  main()
